

  ========= 测试开始 : 20210604_160022 =========



>>> cases\API\Login_API_Test.py

* API_1001  -  2021-06-04 16:00:22

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名 ****************** 正确，密码 ****************** 正确
预期结果:
{
    "msg": "请求成功",
    "code": 0,
    "data": {
        "token": ""
    },
    "type": null,
    "status": "success"
}
测试结果：
{
    "status": "success",
    "msg": "获取token成功！",
    "code": 0,
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiIiwidXNlck5hbWUiOiJ5enlhZG1pbiIsImV4cCI6MTYyMjg4MDAxOSwidXNlcklkIjoieXp5YWRtaW4ifQ.-UlymDps4JZPnwF6PnE3MUe-biXz-8R72UuRJ5jgyig"
    }
}

对比结果：
{'"type":null', '"data":"token":""', '"msg":"获取token成功！"', '"msg":"请求成功"', '"data":"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiIiwidXNlck5hbWUiOiJ5enlhZG1pbiIsImV4cCI6MTYyMjg4MDAxOSwidXNlcklkIjoieXp5YWRtaW4ifQ.-UlymDps4JZPnwF6PnE3MUe-biXz-8R72UuRJ5jgyig"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 22, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



  ========= 测试结束 : 20210604_160022 =========


  耗时    : 0.088 秒


  用例数量 : 1

  通过 : 0

  失败 : 1

  异常 : 0

  套件初始化失败 : 0

  套件清除  失败 : 0

  用例初始化失败 : 0

  用例清除  失败 : 0
